home *** CD-ROM | disk | FTP | other *** search
/ PC Media 23 / PC MEDIA CD23.iso / share / prog / anubis / vform2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-26  |  1.7 KB  |  60 lines

  1. // VFORM2.H
  2. // (C) Anubis Software Agosto 1995
  3. #ifndef VFORM2.H
  4. #define VFORM2.H
  5.  
  6. #include <stdio.h>
  7.  
  8. // ------------------------------------+
  9. // Librerias Anubis Software           |
  10. // ------------------------------------+
  11. #include "ventana2.h"
  12. #include "vcadena2.h"
  13. #include "vcsecret.h"
  14. #include "vboton2.h"
  15. #include "vscroll2.h"
  16. #include "vopcion2.h"
  17. #include "mdefs.h"
  18.  
  19. // -------------------------------------+
  20. // Tipos predefinidos por la librería   |
  21. // -------------------------------------+
  22. typedef struct {
  23.    void *Apuntador;      // Es una apuntador al tipo que se da.
  24.    void *Siguiente;     // VEnlace *  Es una lista de apuntadores.
  25.    WORD TipoEstructura;   // Indica que estructura cuelga de el.
  26. } VEnlace2;
  27.  
  28. typedef struct  {
  29.    VEnlace2 *ListaObjetos;
  30.    VEnlace2 *ObjSeleccionado;
  31. } VForm2;
  32.  
  33. // --------------------------------------+
  34. // Declaracion de las constantes         |
  35. // --------------------------------------+
  36. // Definicion de los eventos que se pueden pasar a VFormEvent
  37. #define PULSAR_TECLA   0
  38.  
  39. // Declaracion de los valores que devuelve VFormEvent
  40. #define VFORM_NADA     0
  41.  
  42. // Declaracion de los tipos para VEnlace
  43. #define VFORM_VCADENA     0
  44. #define VFORM_VBOTON      1
  45. #define VFORM_VSCROLL     2
  46. #define VFORM_VOPCION     3
  47. #define VFORM_VCSECRET    4
  48.  
  49. // -----------------------------------------+
  50. // Algoritmos                                |
  51. // -----------------------------------------+
  52.  
  53. WORD VFormExec( VEnlace2 *, WORD , WORD );
  54. WORD VFormScan( VEnlace2 *);
  55. void VFormDeseleccionar( VEnlace2 *);
  56. void VFormSeleccionar( VEnlace2 *);
  57. void VFormTratar( VForm2 *, WORD , VEnlace2 *);
  58. WORD VFormEvent(VForm2 *, WORD ,WORD , VEnlace2 **);
  59. #endif
  60.